How to parse and form a json with a nested array

visit shbcf.ru